<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Thymeleaf 代码示例</title>
</head>
<body>
   <table>
       <tr>
           <td>编号</td>
           <td>名称</td>
           <td>作者</td>
       </tr>
       <tr th:each="book:${books}">
           <td th:text="${book.id}"></td>
           <td th:text="${book.name}"></td>
           <td th:text="${book.author}"></td>
       </tr>
   </table>
</body>
</html>